package com.xmim.core.session.user;


import com.xmim.core.session.Session;
import com.xmim.core.session.SessionListener;
import com.xmim.core.session.SessionManager;

import java.util.Enumeration;
import java.util.Map;

public interface UserSessionManager extends SessionManager {

    @Override
    UserSessionManager addSessionListener(SessionListener sessionListener);

    @Override
    UserSessionManager addSession(String sessionId, Session session);

    @Override
    UserSession getSession(String sessionId);

    /**
     * 获取所有会话
     *
     * @return
     */
    Enumeration<Map.Entry<String, UserSession>> enumeration();
}
